import Vue from "vue";
import Vuex from "vuex";

Vue.use(Vuex);

export default new Vuex.Store({
  state: {
    LeftHidden: true, //左侧隐藏
    RightHidden: false,
  },
  mutations: {
    setLeftHidden(state, flag) {
      state.LeftHidden = !state.LeftHidden;
    },
    setRightHidden(state, flag) {
      state.RightHidden = !state.RightHidden;
    },
  },
  actions: {},
  modules: {},
});
